using System;
using System.Collections.Generic;
using System.Text;

using SchEdu.Framework.Algorithm;
using SchEdu.Framework.DataModel;
using SchEdu.Framework.Exceptions;
using SchEdu.Framework.Validators;

namespace Lawler
{
    public class LawlerLatenessAlgorithm : LawlerAlgorithm
    {

        public LawlerLatenessAlgorithm()
            : base()
        {
        }
        public LawlerLatenessAlgorithm(SchEduData schEduData)
            : base(schEduData)
        {
        }

        protected override int GetCost(SchEduDataSet.OrderRow order, int t)
        {
            return (t - order.DueDate);
        }


        public override AboutInfo AboutInfo
        {
            get
            {
                AboutInfo aboutInfo = new AboutInfo();
                aboutInfo.Title = "Lawler (Min Lateness)";
                aboutInfo.Guid = new Guid("{C1EC4D6C-6897-4e0b-B790-D50AEE44AE66}");
                return aboutInfo;
            }
        }

    }
}
